package com.zlzlib.manager.bean.vo;

import com.zlzlib.log.bean.vo.LogListVo;
import com.zlzlib.vuePage.annotation.VueTableItem;
import com.zlzlib.vuePage.bean.enums.AlignEnum;
import com.zlzlib.vuePage.bean.enums.WidthEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author zlz
 * @version 1.0
 * @dateTime: 2025/9/4 15:44
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LogSystemVo extends LogListVo.LogVo{

    /**
     * 客户端ip
     */
    @VueTableItem(title = "客户ip", width = 90)
    private String ip;

    @VueTableItem(title = "类型", align = AlignEnum.center, width = 90)
    private String logType;
    /**
     * 线程
     */
    @VueTableItem(title = "线程", align = AlignEnum.center)
    private String thread;
    /**
     * 耗时
     */
    @VueTableItem(title = "耗时", align = AlignEnum.center, width = 90)
    private String time;
    /**
     * 类名
     */
    @VueTableItem(title = "类名", align = AlignEnum.left, width = 200, line = 4)
    private String className;
    /**
     * 方法
     */
    @VueTableItem(title = "方法", align = AlignEnum.left, width = 150)
    private String method;
    /**
     * 参数
     */
    @VueTableItem(title = "参数", align = AlignEnum.left, width = 150, line = 4)
    private String param;
    /**
     * 请求头
     */
    @VueTableItem(title = "请求头", align = AlignEnum.left, width = 150, line = 4)
    private String header;
    /**
     * 结果
     */
    @VueTableItem(title = "结果", align = AlignEnum.left, width = 150,
            line = 4, widthType = WidthEnum.min)
    private String result;
    /**
     * 记录时间
     */
    @VueTableItem(title = "记录时间", align = AlignEnum.center)
    private Date createTime;
}
